package response

import "errors"

type CustomBizEnum struct {
	Code    int
	Message error
}

type CodeEnum int

var (
	Success = CustomBizEnum{Code: 0, Message: errors.New("success")}
	Fail    = CustomBizEnum{Code: -1, Message: errors.New("fail")}

	ErrParamMiss              = CustomBizEnum{Code: 1401, Message: errors.New("缺少必要参数")}
	ErrCreateAppId            = CustomBizEnum{Code: 1402, Message: errors.New("app_id生成失败")}
	ErrCreateAppSecret        = CustomBizEnum{Code: 1403, Message: errors.New("app_secret生成失败")}
	ErrNotFound               = CustomBizEnum{Code: 1404, Message: errors.New("方法不存在")}
	ErrDataNotExist           = CustomBizEnum{Code: 1405, Message: errors.New("数据不存在")}
	ErrAliasNotExist          = CustomBizEnum{Code: 1406, Message: errors.New("厂商不存在")}
	ErrPlatformConfigIllegal  = CustomBizEnum{Code: 1407, Message: errors.New("厂商配置不合法")}
	ErrSendSms                = CustomBizEnum{Code: 1408, Message: errors.New("手机验证码发送失败")}
	ErrInvalidSmsCode         = CustomBizEnum{Code: 1409, Message: errors.New("无效的验证码")}
	ErrInvalidUser            = CustomBizEnum{Code: 1410, Message: errors.New("无效的用户ID")}
	ErrInvalidToken           = CustomBizEnum{Code: 1411, Message: errors.New("无效的token")}
	ErrFileUpload             = CustomBizEnum{Code: 1412, Message: errors.New("文件上传失败")}
	ErrFileSave               = CustomBizEnum{Code: 1413, Message: errors.New("文件保存失败")}
	ErrAppKeyNotExist         = CustomBizEnum{Code: 1414, Message: errors.New("app_key不存在")}
	ErrAppKeyNotFoundPlatform = CustomBizEnum{Code: 1415, Message: errors.New("app_key对应的厂商未配置")}
	ErrAppKeyBan              = CustomBizEnum{Code: 1416, Message: errors.New("app_key对应的厂商被禁用")}
	ErrExpiredToken           = CustomBizEnum{Code: 1417, Message: errors.New("token已过期")}
	ErrAppSecretNotExist      = CustomBizEnum{Code: 1418, Message: errors.New("app_secret不存在")}
	ErrUserNotExist           = CustomBizEnum{Code: 1419, Message: errors.New("用户不存在")}
	ErrParamParse             = CustomBizEnum{Code: 1420, Message: errors.New("参数解析异常")}
	ErrPhoneNotRegister       = CustomBizEnum{Code: 1421, Message: errors.New("后台手机号未注册")}
	ErrNotTeam                = CustomBizEnum{Code: 1422, Message: errors.New("未加入团队")}
	ErrUserIsBan              = CustomBizEnum{Code: 1423, Message: errors.New("账号被禁用")}
	ErrUserIsQuit             = CustomBizEnum{Code: 1424, Message: errors.New("账号已离职")}
)
